#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.5)

# Set VERSION number here
AC_INIT(glipper, [0.90-dev], [svenrech@gmx.de])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE

GETTEXT_PACKAGE="glipper"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])

# Add languages here, on fo each .po file
ALL_LINGUAS="de fr sv"
AM_GLIB_GNU_GETTEXT
AC_PROG_INTLTOOL([0.23])

glipperlocaledir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST(glipperlocaledir)


# Checks for programs.
AC_PROG_CC

# Checks for libraries.
GLIB_REQUIRED=2.6.0
GTK_REQUIRED=2.6.0
GLADE_REQUIRED=2.0.0
AC_SUBST(GLIB_REQUIRED)
AC_SUBST(GTK_REQUIRED)
PKG_CHECK_MODULES(FR,                   \
	glib-2.0 >= $GLIB_REQUIRED          \
	gtk+-2.0 >= $GTK_REQUIRED	\
	libglade-2.0 >= $GLADE_REQUIRED)  
AC_SUBST(FR_CFLAGS)
AC_SUBST(FR_LIBS)
  

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([libintl.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_STDBOOL

# Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([mkdir])
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile ])

AC_OUTPUT(po/Makefile.in)
